package com.b.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.b.domain.CommentReply;
import com.b.dao.CommentReplyMapper;
import com.b.service.CommentReplyService;
import java.util.List;
@Service
public class CommentReplyServiceImpl implements CommentReplyService{

    @Resource
    private CommentReplyMapper commentReplyMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return commentReplyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CommentReply record) {
        return commentReplyMapper.insert(record);
    }

    @Override
    public int insertSelective(CommentReply record) {
        return commentReplyMapper.insertSelective(record);
    }

    @Override
    public CommentReply selectByPrimaryKey(Integer id) {
        return commentReplyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(CommentReply record) {
        return commentReplyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CommentReply record) {
        return commentReplyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<CommentReply> getAll() {
        return commentReplyMapper.getAll();
    }
}
